package com.dflc.entity.req;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class UserPasswordReq {



	/**
	 * 用户旧密码
	 */
	@NotEmpty(message = "用户旧密码必须填写")
	@Length(min = 6,max = 18,message = "用户旧密码必须是6—18位字符")
	private String olderPassword;

	/**
	 * 用户密码
	 */
	@NotEmpty(message = "密码必须填写")
	@Length(min = 6,max = 18,message = "密码必须是6—18位字符")
	private String password;
//	/**
//	 * 用户确认密码
//	 */
//	@NotEmpty(message = "确认密码必须填写")
//	@Length(min = 6,max = 18,message = "确认密码必须是6—18位字符")
//	private String confirmPassword;

}
